{% extends "layout.html" %}

{% block main %}
<div class="box">
    <div class="header"><a href="/">V2EX</a> <span class="chevron">&nbsp;›&nbsp;</span> <a href="/settings">设置</a> <span class="chevron">&nbsp;›&nbsp;</span> 头像上传</div>
    <div class="message" onclick="$(this).slideUp('fast');">{{ message }}</div>
    <div class="inner"><form method="post" action="/settings/avatar" enctype="multipart/form-data">
        <table cellpadding="5" cellspacing="0" border="0" width="100%">
            <tbody><tr>
                <td width="120" align="right">当前头像</td>
                <td width="auto" align="left"><img src="{{ current_user.avatar_large }}" class="avatar" border="0" align="default"> &nbsp; <img src="{{ current_user.avatar }}" class="avatar" border="0" align="default"> &nbsp; <img src="{{ current_user.avatar_small }}" class="avatar" border="0" align="default"></td>
            </tr>
            <tr>
                <td width="120" align="right">选择一个图片文件</td>
                <td width="auto" align="left"><input type="file" name="avatar"></td>
            </tr>
            <tr>
                <td width="120" align="right"></td>
                <td width="auto" align="left"><span class="gray">支持 2MB 以内的 PNG / JPG / GIF 文件</span></td>
            </tr>
            <tr>
                <td width="120" align="right"></td>
                <td width="auto" align="left"><input type="hidden" value="66243" name="once"><input type="submit" class="super normal button" value="开始上传"></td>
            </tr>
        </tbody></table></form>
    </div>
</div>
{% endblock main %}
